#!/bin/bash
# cinefinder 1.0 by Saffi
# 2008-04-04

if [[ "$1" = "" ]] ; then
echo -e "Usage: cinefinder {string}";
exit 1
else
for i in /Users/saffi/Movies /Users/saffi/Desktop /Volumes/MacData /Volumes/WinData ; do
sudo find ${i} -type f \( -iname "*${1}*avi" -o -iname "*${1}*wmv" -o -iname "*${1}*mpg" -o -iname "*${1}*mpeg" -o -iname "*${1}*mkv" -o -iname "*${1}*dv" -o -iname "*${1}*flv" -o -iname "*${1}*mov" \) 2> /dev/null
done
fi
